# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-zope-hookable
_pkgname=zope.hookable
pkgver=5.4
pkgrel=2
pkgdesc="Represents the core of the Zope hookable Architecture"
url="https://github.com/zopefoundation/$_pkgname"
arch="all"
license="ZPL-2.1"
depends="py3-setuptools"
makedepends="python3-dev"
# checkdepends="py3-zope-testing" # Is in upper repo 'testing'
subpackages="$pkgname-pyc"
source="$_pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-zope-hookable" # Backwards compatibility
provides="py-zope-hookable=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
e109589dc67b155be99bceb5cb100ab1a728d3201126b2b17125054fc3b3f4f3424a11d28d222557ab74be3d67289e26dd6f3f161544970e09aad26e993e3103  zope.hookable-5.4.tar.gz
"
